package com.reggie.mvp_demo;

import android.util.Log;
import android.widget.TextView;

import com.reggie.mvp_demo.bean.Event;
import com.reggie.mvp_demo.model.Model;

import java.util.List;

import static java.lang.Thread.sleep;

public class MainPrestener implements MainContract.MainPresenterInterface,callback {

    private Model model;
    private MainContract.MainActivityInterface mainView;
    public MainPrestener(MainContract.MainActivityInterface mainView)
    {
        model=new Model(this);
        this.mainView = mainView;
    }


    @Override
    public void getTodayEvent(String v, int m, int d) {

        model.getTodayEvent(v,m,d,this);
    }


    @Override
    public void LoadSuccess(List<Event> events) {
      mainView.setEvent(events);
    }
}
